import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 导入element库
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

import axios from 'axios'
Vue.prototype.$axios = axios

// 导入全局vant库
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

// 事件总线
Vue.prototype.$bus = new Vue()

// 延时加载
import  VueLazyload from 'vue-lazyload'
Vue.use(VueLazyload, {
  // 加载时要显示的图片
  loading: "https://ss0.bdstatic.com/94oJfD_bAAcT8t7mm9GUKT-xh_/timg?image&quality=100&size=b4000_4000&sec=1600497397&di=d3b42684447a16c5298c62bf9e2a1457&src=http://pic1.win4000.com/pic/7/50/a3b8291036.jpg"
})


Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
